
from django.conf.urls import url
from . import views

urlpatterns = [

    # url(r'^categories/$',views.CategoryView.as_view(),name='categories'),

    url(r'^categories/(?P<category_id>\d+)/hotskus/$',views.HotSKUAPIView.as_view(),name='hot'),

    url(r'^categories/(?P<category_id>\d+)/skus/$',views.SKUAPIView.as_view(),name='hot'),


]

from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register('search',views.SKUSearchViewSet,base_name='skus_search')

urlpatterns += router.urls





























